package com.orangelife.mobile.surrounding.entity;

import com.orangelife.mobile.util.StringUtil;

/**
 * 商户信息实体
 * Created by 绯若虚无 on 2016/1/21.
 *
 * @author 绯若虚无
 * @since v3.4
 */
public class MerchantEntity {

    /**
     * shopHours :
     * merID : e3ff4e3a-b271-4c70-aed7-98d60a350f73
     * completeSum : 8
     * merchantName : 夏天
     * merchantLogo : http://7te8s5.com2.z0.glb.qiniucdn.com/web_1429592644982344.png
     * merchantImgs : http://7te8s5.com2.z0.glb.qiniucdn.com/web_142959264699879.png
     * dispatch : 配送费5.00元,满34.00元送货上门
     * dispatchInfo : {"createuserID":"","dispatchID":"03e99ffe-557f-4298-8ea4-04242e17ece3","dispatchName":"送货上门","dispatchType":"3","edituserID":"","fee":5,"itemStat":"1","limitFee":34,"merID":"e3ff4e3a-b271-4c70-aed7-98d60a350f73","status":"0","tscreate":1452592954000,"tsedit":1452592954000}
     * tsedit : 1452592953000
     */
    /** 营业时间 */
    private String shopHours;
    /** 商家ID */
    private String merID;
    private int completeSum;
    /** 商家名称 */
    private String merchantName;
    private String merchantLogo;
    private String merchantImgs;
    /** 配送方式 */
    private String dispatch;
    /**
     * createuserID :
     * dispatchID : 03e99ffe-557f-4298-8ea4-04242e17ece3
     * dispatchName : 送货上门
     * dispatchType : 3
     * edituserID :
     * fee : 5
     * itemStat : 1
     * limitFee : 34
     * merID : e3ff4e3a-b271-4c70-aed7-98d60a350f73
     * status : 0
     * tscreate : 1452592954000
     * tsedit : 1452592954000
     */

    private DispatchInfoEntity dispatchInfo;
    private String tsedit;

    public void setShopHours(String shopHours) {
        this.shopHours = shopHours;
    }

    public void setMerID(String merID) {
        this.merID = merID;
    }

    public void setCompleteSum(int completeSum) {
        this.completeSum = completeSum;
    }

    public void setMerchantName(String merchantName) {
        this.merchantName = merchantName;
    }

    public void setMerchantLogo(String merchantLogo) {
        this.merchantLogo = merchantLogo;
    }

    public void setMerchantImgs(String merchantImgs) {
        this.merchantImgs = merchantImgs;
    }

    public void setDispatch(String dispatch) {
        this.dispatch = dispatch;
    }

    public void setDispatchInfo(DispatchInfoEntity dispatchInfo) {
        this.dispatchInfo = dispatchInfo;
    }

    public void setTsedit(String tsedit) {
        this.tsedit = tsedit;
    }

    public String getShopHours() {
        if (StringUtil.isBlank(shopHours)) {
            shopHours = "";
        }
        return shopHours;
    }

    public String getMerID() {
        return merID;
    }

    public int getCompleteSum() {
        return completeSum;
    }

    public String getMerchantName() {
        return merchantName;
    }

    public String getMerchantLogo() {
        return merchantLogo;
    }

    public String getMerchantImgs() {
        return merchantImgs;
    }

    public String getDispatch() {
        return dispatch;
    }

    public DispatchInfoEntity getDispatchInfo() {
        return dispatchInfo;
    }

    public String getTsedit() {
        return tsedit;
    }

    /** 配送信息 */
    public static class DispatchInfoEntity {
        private String createuserID;
        private String dispatchID;
        private String dispatchName;
        /** 配送方式（1邮寄，2到店提货，3送货上门) */
        private String dispatchType;
        private String edituserID;
        /** 配送费用 */
        private String fee;
        private String itemStat;
        /** 满额免费 */
        private String limitFee;
        private String merID;
        private String status;
        private long tscreate;
        private long tsedit;

        public void setCreateuserID(String createuserID) {
            this.createuserID = createuserID;
        }

        public void setDispatchID(String dispatchID) {
            this.dispatchID = dispatchID;
        }

        public void setDispatchName(String dispatchName) {
            this.dispatchName = dispatchName;
        }

        public void setDispatchType(String dispatchType) {
            this.dispatchType = dispatchType;
        }

        public void setEdituserID(String edituserID) {
            this.edituserID = edituserID;
        }

        public void setFee(String fee) {
            this.fee = fee;
        }

        public void setItemStat(String itemStat) {
            this.itemStat = itemStat;
        }

        public void setLimitFee(String limitFee) {
            this.limitFee = limitFee;
        }

        public void setMerID(String merID) {
            this.merID = merID;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public void setTscreate(long tscreate) {
            this.tscreate = tscreate;
        }

        public void setTsedit(long tsedit) {
            this.tsedit = tsedit;
        }

        public String getCreateuserID() {
            return createuserID;
        }

        public String getDispatchID() {
            return dispatchID;
        }

        public String getDispatchName() {
            return dispatchName;
        }

        public String getDispatchType() {
            return dispatchType;
        }

        public String getEdituserID() {
            return edituserID;
        }

        public String getFee() {
            return fee;
        }

        public String getItemStat() {
            return itemStat;
        }

        public String getLimitFee() {
            return limitFee;
        }

        public String getMerID() {
            return merID;
        }

        public String getStatus() {
            return status;
        }

        public long getTscreate() {
            return tscreate;
        }

        public long getTsedit() {
            return tsedit;
        }
    }
}
